package cn.javabb;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@ServletComponentScan(basePackages = "cn.javabb")
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})
@EnableTransactionManagement
@EnableConfigurationProperties
public class BbsWebApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext application =  SpringApplication.run(BbsWebApplication.class,args);
        //System.out.println(application.getBean(RedisProperties.class));
        //application.close();
    }
}

